package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.CategoryAllBeen;
import cn.xfdzx.android.apps.shop.bean.ListingToPayBeen;
import cn.xfdzx.android.apps.shop.bean.PurchaseSubmitBeen;
import cn.xfdzx.android.apps.shop.bean.PurchaseSubmitEditBeen;
import cn.xfdzx.android.apps.shop.contract.ListingToPayContract;
import cn.xfdzx.android.apps.shop.contract.OneCategoryContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class ListingToPayModel implements ListingToPayContract.Model {



    @Override
    public Flowable<ListingToPayBeen> initData(String index_status) {
        return RetrofitClient.getInstance().getApi().purchaseList(index_status );
    }


    @Override
    public Flowable<PurchaseSubmitBeen> purchaseEdit(PurchaseSubmitEditBeen body) {
        return RetrofitClient.getInstance().getApi().purchaseEdit( body);
    }

    @Override
    public Flowable<BaseObjectBean> purchaseDelete(String purchase_sn) {
        return RetrofitClient.getInstance().getApi().purchaseEdit( purchase_sn);
    }

}
